<%@include file="/include/head.jspf" %>	
<%@page import="java.util.*, com.atech.ace.entity.*" %>
<jsp:useBean id="cart" scope="session" class="com.atech.ace.web.cart.ShoppingCart" />	
	<div align="center">
<table bgcolor="white" border="1" width="95%" cellpadding="5" cellspacing="5">
<%
    
 %>
  
 <%
   	 Iterator i = cart.getProducts().entrySet().iterator();
      while(i.hasNext())
      {
        Map.Entry me = ( Map.Entry) i.next();
        Product product = ( Product ) me.getValue();
  %>
  <tr>
  <td><img src="<%=product.getImageUrl()%>" />&nbsp;<%=product.getName()%><br />
  <%=product.getDescription()%>
  <br />
  $<%=product.getPrice()%>
  <br />
  <input type="text size="2" name="quantity" value="<%=product.getCurrentQuantity()%>"/>&nbsp;<input type="button" onClick="javascript:updateQuantity('<%=product.getProductId()%>');" />
  </td>
  </tr>
  <%
     
   	  }
   	 
   %>
   
</table>	
</div>
<%@include file="/include/footer.jspf" %>